home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / c-runtime / tests / 21Nov91.perf < prev    next >
Encoding:
Text File  |  1991-11-21  |  961 b   |  36 lines

  1. *    gcc2: -fno-function-cse -fomit-frame-pointer -O2
  2. *    Changed hashIndex() in hash.c.  It was calculating
  3.     a hash value from a hash value.
  4.  
  5.  
  6. for( i = 0; i < ITERATIONS; ++i )
  7.   [[ Object new ] free ];
  8. 1000000 iterations, 68 sec (14705.882353/sec)
  9.  
  10. for( i = 0; i < ITERATIONS; ++i )
  11.   [[ SubClass2 new ] free ];
  12. (super class must be searched for +new)
  13. 1000000 iterations, 89 sec (11235.955056/sec)
  14.  
  15. for( i = 0; i < ITERATIONS; ++i )
  16.   [[ SubClass2 newOther ] free ];
  17. (+newOther calls +new in its super class)
  18. 1000000 iterations, 98 sec (10204.081633/sec)
  19.  
  20. aObj = [ Object new ];
  21. for( i = 0; i < ITERATIONS; ++i )
  22.   [ aObj self ];
  23. 1000000 iterations, 9 sec (111111.111111/sec)
  24.  
  25. aObj = [ SubClass3 new ];
  26. for( i = 0; i < ITERATIONS; ++i )
  27.   [ aObj self ];
  28. (-self is implemented two classes up)
  29. 1000000 iterations, 8 sec (125000/sec)
  30.  
  31. aObj = [ SubClass3 new ];
  32. for( i = 0; i < ITERATIONS; ++i )
  33.   [[ aObj self ] self ];
  34. 1000000 iterations, 15 sec (66666.666667/sec)
  35.  
  36.